package com.vimi8.ebb.auth.manage;

import com.vimi8.ebb.auth.model.RegUser;
import org.springframework.security.oauth2.provider.ClientDetails;

import java.util.List;

/**
 * Created by think on 2016/12/2.
 */
public interface OrgManage {
    //授权审批
    public Integer approval(String orgId, String userId,int isApproval) throws Exception;
    //切换组织
    public ClientDetails switchOrg(String newOrgId, String oldOrgId, String  openId) throws Exception;
    //注册组织法人
    public RegUser registerCorp( RegUser regUser,String autoRecource,String autoScopes) throws Exception;

    //批量注册组织法人
    public List<RegUser> batchRegisterCorp(List<RegUser> regUserList, String autoRecource, String autoScopes) throws Exception;
    //申请加入组织
    public int applyAddOrg( String orgId,String openId,String job) throws Exception;


}
